package com.order.service;

import com.order.Client.AccountClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author cyt
 * @create 2020-08-25 14:53
 */
@Slf4j
@Service
public class AccountService {
    @Autowired
    AccountClient accountClient;

    public void decAccount(Integer userId,Integer count) {
        accountClient.decAccount(userId,count);
        log.info("账户修改成功");
    }

}
